import threading
import time


# 唱歌函数
def sing():
    for i in range(5):
        print('正在唱歌...%d',i)
        time.sleep(0.5)


# 跳舞函数
def dance():
    for i in range(5):
        print("正在跳舞....%d",i)
        time.sleep(0.5)


# 调用
if __name__ == '__main__':
    print("run.....")
    # 1. 导入线程模块
    # 2. 创建线程对象
    t1 = threading.Thread(target=sing)
    t2 = threading.Thread(target=dance) 
    # 3. 启动子线程
    t1.start()
    t2.start()